package com.rzjm.api.service;

import com.rzjm.api.entity.DeviceWater;
import com.rzjm.api.entity.DeviceWaterCard;
import com.rzjm.api.entity.DeviceWaterOrder;
import com.rzjm.api.netty.water.entity.ReceiveData;

/**
 * 充电订单Service接口
 *
 * @author ruoyi
 * @date 2025-01-07
 */
public interface IDeviceWaterOrderService extends BaseService<DeviceWaterOrder> {

    /**
     *  刷卡生成打水订单
     * @param waterCard
     * @return
     */
    DeviceWaterOrder addOrderByCard(DeviceWater device, DeviceWaterCard waterCard);

    /**
     *  停止按钮  结束订单
     * @param waterOrder
     * @param receiveData
     * @return
     */
    int overOrderByCard(DeviceWater device, DeviceWaterOrder waterOrder, ReceiveData receiveData);
}
